package org.taohuawu.service.fallback;

import org.springframework.stereotype.Component;
import org.taohuawu.pojo.Order;
import org.taohuawu.service.OrderFeignService;
import org.taohuawu.web.util.JsonResult;

@Component
public class OrderFeignServiceFallback implements OrderFeignService {
    @Override
    public JsonResult<Order> getOrder(String orderId) {
        return JsonResult.err("获取订单失败");
    }

    @Override
    public JsonResult addOrder() {
        return JsonResult.err("新增订单失败");
    }
}
